How to display progress of scipy.optimize function? How to display progress of scipy.optimize function? python python