Bash If Array Contains Key In Hashmap In Python