Fix format() use for Python 2.6 - fixes #285