def validate_loop(): """ Schedule loop, need for schedule module """ while True: schedule.run_pending() time.sleep(1)