[python] Creating a timer in python

You're probably looking for a Timer object: http://docs.python.org/2/library/threading.html#timer-objects