docs: def tail_file(filename):
      ''' Tail a file using pygtail. Note: this could probably be improved '''
      with make_temp_file() as offset_file:
          while True:
              for line in pygtail.Pygtail(filename, offset_file=offset_file):
                  yield line
              time.sleep(1.0)