str.format() modification calls for retro-compatibility with python 2.6