Never done this myself, but I think a timer object might come in handy for that.
http://www.python.org/doc/2.4.2/lib/timer-objects.html
Find a way to check the system time, probably using the time module (http://www.python.org/doc/2.4.2/lib/module-time.html) and based on what time you find...