this file can be executed with command method or module method by the caller.  Regarding the sys.exit() please see the below code lines