Bugfix: modifying query while iterating over it

12 jobs for python-version-issues in 28 minutes and 2 seconds (queued for 2 seconds)