fix string format for python2.6