With the curve_fit function in scipy, I got some very werid result. A slight change in my function will make it better. But I don\'t know why. This is the code doens\'t work