def label_func(s, label=label):
                self.set_label(s, label)
def get(self, key, default=None):
        try:
            value = self[key]
        except KeyError:
            value = self._to_python(default)
        return value