Constrained multivariate least-squares optimizer for scipy