Compatibility of .format call for python 2.6