def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def generateUUID():  # pylint: disable=invalid-name
    """ Utility function; generates UUIDs """
    return str(uuid.uuid4())