Python Linear Least Squares Approximation