Fonction Python Moving Regression Model