def __repr__(self):
    ' return tree as JSON serialized dictionary '
    return self.pretty_print(self.__dict__)
return tree as JSON serialized dictionary
def __repr__(self):
    '  '
    return self.pretty_print(self.__dict__)