def dist(a, b):
    return sum((i-j)**2 for i, j in zip(a, b))
def serialize(self, value, display=False):
        if not value:
            return ""
        return "\n  " + "\n  ".join(encode(v) for v in value if v)