session.add_all([a, b])
session.commit()
atmp = a.name
btemp = b.name
a.name = a.name + btemp
session.commit()
b.name = atemp
a.name = btemp
session.commit()
How can I switch two fields of a unique row within one commit using SQLAlchemy?