python 3 fixes in message modification responses