Clean up scripts/update_localization.py

It now properly uses the python built-in JSON library.

Fix #1185 on GitHub.