Swift Loop Through Array Python Methods That Only Takes