fix the exception errror in difference between latest sqlalchemy