executar uma função a cada n segundos python
import threading
def printit():
threading.Timer(5.0, printit).start()
print "Hello, World!"
printit()
# continue with the rest of your code
Happy Hippopotamus