Python Nonlinear Equation Simple