I was able to resolve the remaining errors by removing sys.exit() and replacing with return / return 1.
Any thoughts on what these debug lines are referring to? (what is route type and should name have a value?)
DEBUG: app_python3s [apy3s_kemi.c:227]: sr_kemi_config_engine_python(): execution of route type 513 with name
[] returned -1
DEBUG: app_python3s [apy3s_kemi.c:230]: sr_kemi_config_engine_python(): execution of route type 1 with no name returned 1