I believe, with [update method](http://docs.sqlalchemy.org/en/rel_0_8/core/expression_api.html#sqlalchemy.sql.expression.update) you can do that without any cycles.