<human>:  Convert unicode string dictionary into dictionary in python
<bot>: Here is some code to convert unicode string u"{'code1':1,'code2':1}" into dictionary

d = ast.literal_eval("{'code1':1,'code2':1}")

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.