Sqlalchemy Execute Query Function Python Syntax For Loop