Added positional arguments in some string.format calls for Python 2.6 compatibility

Tests succeeded in a python virtual environment configured with --python=python2.6.