Bash Script Loop Through Array Python Example Problem