def __init__(self, filename=None):
        self.filename = None
        if filename:
            self.load(filename)
def get(self, key, default=None):
        try:
            value = self[key]
        except KeyError:
            value = self._to_python(default)
        return value