nmax = 20 # max number of branches per node class Values: key = None def __init__(self, data): self.data = tuple(data) if len(data): self.key = data[0][0] def split(self): l = self.data if len(l)