Bash If Variable In Array Python Methods And Functions