Bash Script Check For Empty String In Python