[Core] Can't use iteritems.

The dictionary changes size if you load/unload anything.