Preparation for python 2.6.

Python 2.6 cannot treat '{}' in format() function.