Say you have the following dictionary:
mydict = {'a':{'aa':{'aaa':1}}, 'b':{'bb':{'bbb':2}}, 'c':{'cc':{'ccc':3}}}
The code published in your example will produce the following result:
{'a': {'aa': {'aaa': 'value'}}, 'c': {'cc': {'ccc': 'value'}},
'b': {'bb': {'bbb': 'value'}}}
, , :
mydict = {key:{inner_key:{core_key:'value'
for core_key in inner_dict.iterkeys()}
for inner_key, inner_dict in value.iteritems()}
for key, value in mydict.iteritems()}
, , . , .