Swift Foreach Array Of Objects Python