Changed first def to use dictionaries as input data instead
Changed StepFunctionTimeSeries to use dictionaries instead of lists
I did a thing.
Using ben's update