Use sys.exit instead of raising SystemExit