Event Scheduler in python