Bash If Array Contains Key Python