store return value of a python script in a bash script,sys.exit(1)