While Loop Through String Array Python Memory