def save(self): data = dump(self.data) safe_overwrite(self.fname, data)
def save(self): dump(self.data, open(self.fname, 'w'))