Scipy Curve Fit Error