Python Quadratic Program Solver