def dist(a, b):
    return sum((i-j)**2 for i, j in zip(a, b))
def serialize(self):
        s = []
        for v in self:
            if isinstance(v, BaseConfig):
                v = v.serialize()
            s.append(v)
        return s