import copy
x = {'username': 'admin', 'machines': ['foo', 'bar', 'baz']}
y = copy.deepcopy(x)
y['username'] = 'mlh'
y['machines'].remove('bar')
print(id(y))
print(id(x))
print(id(y['machines']))
print(id(x['machines']))
aW1wb3J0IGNvcHkKeCA9IHsndXNlcm5hbWUnOiAnYWRtaW4nLCAnbWFjaGluZXMnOiBbJ2ZvbycsICdiYXInLCAnYmF6J119CnkgPSBjb3B5LmRlZXBjb3B5KHgpCnlbJ3VzZXJuYW1lJ10gPSAnbWxoJwp5WydtYWNoaW5lcyddLnJlbW92ZSgnYmFyJykKcHJpbnQoaWQoeSkpCnByaW50KGlkKHgpKQpwcmludChpZCh5WydtYWNoaW5lcyddKSkKcHJpbnQoaWQoeFsnbWFjaGluZXMnXSkp