format function compatible with python 2.6 and 2.7

bbox : format function compatible with python 2.6 and python 2.7