forecasting principles and practice pythonic way