When should I commit with SQLAlchemy using a for loop?,db.session.commit()