Fixed errors on scheduler.py and data.py