How To Do Curve Fitting In Python