Scipy optimize minimize example multiple variables