how can i tail a log file in python?,time.sleep(1)