Exponential Weighted Moving Average Python Programmer