Update schedcsv.py

ugly code, needs to be refactored, separated into logical components and set up to allow for easier re-use

but it works for the current input set