Linux Bash Script Exit Script Python