Loop Through Multidimensional Array Python Example Problem