Revert scheduler.py