Fix some silly Python issues with lang/extract_json_strings.py.

Surprised nobody ran into these before. Does anyone run this?