Loop Through Nested Array Python Example