modified to ensure compatibility with python2.6

Following the python doc at http://docs.python.org/2/library/string.html (7.1.3.2. Format examples), {}.{}\n,format() is available since python 2.7. To ensure compatibility with python2.6, i added tuple-indexes.