Fix tarfioe support for python2.6