Python Quadratic Equation solver