Using Python With Matlab For Loop