correct way to edit dictionary value python,"my_dict.setdefault('foo', {})['bar'] = some_var"