code: def make_lines(handle, follow=False, wait=0.1):
      
      while True:
          line = handle.readline()
          if line:
              yield line
          elif follow:
              time.sleep(wait)
          else:
              raise StopIteration
docs: Creates a line generator from a stream (file handle) containing data in
      lines.
  
      Arguments:
  
        - follow(``bool``) [default: ``False``] If ``True`` follows the file after
          it finishes like 'tail -f'.
        - wait(``float``) [default: ``0.1``] time to wait in seconds between file
          polls.