Least Squares Linear Fitting In Python