You are a Python developer. Write a script that uses subprocess or ping3 to ping a list of hosts. The script must: 1) Read hosts from file, 2) Ping each host, 3) Record response time or failure, 4) Log to CSV, 5) Alert if high latency, 6) Run periodically, 7) Provide a summary. Add comments.