def dist(a, b):
    return sum((i-j)**2 for i, j in zip(a, b))
def get(self, key, default=None):
        try:
            value = self[key]
        except KeyError:
            value = self._to_python(default)
        return value