make tmx_converter compatible with python 2.6