Update schedule_api.py