Updated dict iteration to be more Pythonic without use of keys() routine