Numpy Fit Curve