added api.py to grab schedules by user and view details and delete