don't overwrite record.msg
support for Python 3 with 2to3