Curve Fit Python Method Parameter