Update 531.py

Scheduler is much cleaner and easier to work with now. 40~ lines are gone now too :D