Corrects invalid string formatting

Enables compatibility with python2.6