Python Loop Through Array Of Objects