def save(self, filename=None):
        filename = Path(filename) if filename is not None else self.filename
        with filename.open("w") as f:
            f.write(self.yaml)
def pop(self, key, default=None):
        value = self._collection.pop(key, default)
        if isinstance(value, Proxy):
            value = value.get()
        return value