def _prev_index(self, s):
        self.set_index(max(0, self.index - 1))
def get(self, key, default=None):
        try:
            value = self[key]
        except KeyError:
            value = self._to_python(default)
        return value