Python Loess Smoothing Algorithm