def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def initialize_options(self):
    self.install_dir = None
    self.force = 0
    self.outfiles = []