Numpy Nonlinear Fit Matlab