remove assert with sys.exit