Fonction Python Moving Regression Analysis