return ret replaced with sys.exit() correct exit function in python