Maximize Profit with Scipy Optimize