python 2.6 support

Hello. I've tried to use your module with python 2.6, and it was not working becouse of "{}" used for format() instead of {0} {1} ...

So i fixed this. Here is a patch.