string.format back compatible with python2.6