One way to fix for sqlalchemy 9.0