Pragmatic fix of msgfmt.py to be compatible with python3