'create a new copy of this :class:`.Context`. with
tokens related to inheritance state removed.'

def _clean_inheritance_tokens(self):

    c = self._copy()
    x = c._data
    x.pop('self', None)
    x.pop('parent', None)
    x.pop('next', None)
    return c
