How to pass a Bash variable to Python?,sys.exit(1)