understanding time series models in python