Scipy Nonlinear Least Squares