def save(self, doc):
        if doc.id:
            return self.update(doc)
        else:
            return self.insert(doc)
def list(params=None, env=None, headers=None):
        return request.send_list_request('get', request.uri_path("plans"), params, env, headers)