Don't modify dict keys in loop
Don't modify dict keys in loop

I learned today that this has always been a bug (it falls under
modifying a mutable object), but it's enforced in Python 3.8.

csdms/dakota,csdms/dakota