Fit A Function To Data Python Code For Snake