my_data = dict()
my_data['foo1'] = 'Hello world'
my_data['foo2'] = 'bar'
my_data['foo1'] = {'1': 'a', '2': 'b'}
my_data['foo1'] = '1+1'
for name in my_data:
    myvalue = eval(my_data[name])
print(name, 'is', type(name), 'and is equal to ', myvalue)
List user defined variables, python