Scientific Python: Using Scipy For Optimization