Python Quadratic Solver Program