I am trying to convert a Matlab code to Python and mostly everything is quite simple to change. But I got stuck with this part when there appeared a lot of semi colons in on