I\'m currently developing a stock-portfolio calculator for a uni course and I simply can\'t get Scipy\'s minimize function to work when using it inside of an object oriented