Avoid dictionary changing size on py3k
Formatting