Matlab Speed Vs Python Working With Loop Arrays String Compare