Bash Loop Through Array Python Definition