fix string format for python 2.6 support
python3 support for tests