Python Function For Quadratic Equation