def save(self, session=None): import zun.db.sqlalchemy.api as db_api if session is None: session = db_api.get_session() super(ZunBase, self).save(session)