code: def _tail_file(self, file, interval):
          
          file.seek(0,2)
          while True:
              where = file.tell()
              line = file.readline()
              if not line:
                  time.sleep(interval)
                  file.seek(where)
              else:
                  yield line
docs: Tails a file