Swift Loop Through Array Python Methods And Classes