Testing out Quadratic Programming in Python