Linear Least Squares Python