Fixed format issue for Python 2.6

Changed all {} in format expressions to {0} and {1}, for compatibility with Python 2.6.
Can you @Galithil check this, merge and deploy when convenient?