def root(self):
        'Return root context (highest level ancestor)'
        return self if self.parent is None else self.parent.root
Return root context (highest level ancestor)
recipes/Python/577434_Nested_contexts__chamapping/recipe-577434.py