Do not mutate dict objects when iterating keys