updated tseries.py