You create `temp_dict` from `local_hints[matching_answer]`, modify this dict, and after that do not use it :)
I guess, that you wish:

```python
matching_hints.update(temp_dict)
```