Python Weighted Moving Average