Moving Average Library Python