<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def read_host_file(path):
 """ Read the host file. Return a list of hostnames. """

  res = []
  for l in file(path).xreadlines():
    hostname = l.strip()
    if hostname:
      res.append(hostname)
  return res