import time import sys print ("Sleep loop, you should run your script from the console") while True: # Wait for 5 seconds time.sleep(2)