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