class Tree: def __init__(self, condition=lambda: 0, childs={}): self.condition = condition self.childs = childs def __str__(self): return str(self.condition)