Nonlinear Fit Python Code For Snake