Python Moving Least Squares