Fix "dictionary changed size during iteration" in `save_translations()` in Python 3.