Fix string format to work with Python 2.6 too