Scipy optimize: minimize constraints