Python String Extract Number From String Matlab For Loop