def isinstance(obj, bases):
    try:
        cls = obj.__getattr__("__class__")
    except AttributeError:
        try:
            cls = obj.__class__
        except AttributeError:
            cls = orig_type(obj)
    return issubclass(cls, bases)
a version of isinstance that supports NetProxies
dataset/ETHPy150Open deanhiller/databus/webapp/play1.3.x/python/Lib/site-packages/Rpyc/Utils/Builtins.py/isinstance