'D.setdefault(k[,d]) -> D.get(k,d), also set D[k]=d if k not in D.'

def setdefault(self, key, default=None):

    if (not self.loaded):
        self.load()
    return self._data.setdefault(key, default)
