localize.py: write out to existing file, handle hooks, do a double-check.

Only thing that remains is handling jsObj.prop="Some text "+UI.prop+" more text."