Python Int Object Has No Attribute Isnumeric Matlab For Loop