Further attempts to get SciPy solvers to work