Not direct response to the question.
On Linux/Unix operating system there are few ways to do so and usually I just write my program / script normally and then add it to cron or something similar (like launchd on OS X)
Response to the question starts here.
Use standard python sched module - standard library documentation describes some nifty solutions.