Removing more qpsolver dependencies from nlp.py