Let's say you have the following dictionary:
mydict = {'a':{'aa':{'aaa':1}}, 'b':{'bb':{'bbb':2}}, 'c':{'cc':{'ccc':3}}}
The code you posted in your example will produce the following result:
{'a': {'aa': {'aaa': 'value'}}, 'c': {'cc': {'ccc': 'value'}},
'b': {'bb': {'bbb': 'value'}}}
Since your question also mentions a one liner you could use a nested dictionary comprehension but it is not necessarily faster nor neater:
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()}
This will produce the same result as the code you posted.It is technically a one-liner even though for the sake of readability it should not be written in one line.