iteration codes in python and matlab converge to the same values of investment ans skills