fixing format string to be python2.6 compatible