Bash If Variable In Array Python Methods