def get_repr(self):
    if (self.parent != self):
        self.parent = self.parent.get_repr()
    return self.parent
def get_repr(self):
    if (self.parent != self):
        self.parent = self.parent.get_repr()
    return self.parent