In Python 3, the iterated variable in a comprehension isn't leaked into global scope.  Might be worth checking whether any of our dependencies don't support Python 3 yet, and if not, putting a Python 3 upgrade on the radar.  I'm sure Python 3's great unicode support would prevent at least a few bugs.