Curve Fit Python Method Overloading