Bash Shell Loop Through Array Python Definition