Replace os.exit with sys.exit
Replace new command with init command.