scipy.optimize.minimize(fun, x0, args=(), method='BFGS', jac=None, hess=
    None, hessp=None, bounds=None, constraints=(), tol=None, callback=None,
    options=None)
How do I use a minimization function in scipy with constraints