Though this particular example might be clearer by making a mutable copy of the dictionary.