[python] don't wrap classes that inherit from BaseException in _HxException