Bash Loop Through Array Python Question