Python Loop Over Array Of Structures