@@ -0,0 +1,477 @@
+%0A%0Aclass Context(object):%0A    %0A    def __init__(self, entity):%0A        self.entity = entity%0A        self.parent = None%0A        self.children = %5B%5D%0A    %0A    def __repr__(self):%0A        return '%3CContext %25s:%25s at 0x%25x%3E' %25 (self.entity%5B'type'%5D, self.entity%5B'id'%5D, id(self))%0A    %0A    def pprint(self, depth=0):%0A        print '%25s- %25s:%25s at 0x%25x' %25 ('%5Ct' * depth, self.entity%5B'type'%5D, self.entity%5B'id'%5D, id(self))%0A        for child in self.children:%0A            child.pprint(depth + 1)%0A

Starting the Context