Python Exponential Smoothing Formula