Foreach Loop Through Array Of Arrays Python