update dictionary with dynamic keys and values in python,mydic.update({i: o['name']})