Python solves the quadratic equations