Least Square Fitting Python W3schools