Update timeseries.py