Replace exit() call with sys.exit()

exit() is supposed to be used in the interactive interpreter.