I tried making that change today, but re-discovered the reason: this loop mutates the `dict`, which makes `iterkeys` throw.