The sched module implements a generic event scheduler for running tasks at specific times.
sched
Read more at pymotw.com: sched