Bash Test For Null Variable Python