def getproxytarget(obj):
    '''
    this will return the unproxied target object.
    '''
    ogetattribute = object.__getattribute__
    try:
        return ogetattribute(obj, ogetattribute(obj, '__proxy_target_attr_name__'))
    except:
        if not isproxy(obj):
            raise TypeError, 'obj must be a proxy (got: %s).' % obj
        raise

    this will return the unproxied target object.
    
recipes/Python/305308_mixins_for_proxy_construction/recipe-305308.py