Workaround for andrewclegg/snake-charmer#12
Fixed typo
Merge pull request #3196 from andrewclegg/master

Fix for Python 3.x race condition causing "RuntimeError: dictionary changed size during iteration"