latex_log: py3 support - writting output
python scripts: use PY3 (like in the six module)