add backward-compatibility with python 2.6 format syntax
Merge pull request #760 from johnarevalo/master

add backward-compatibility with python 2.6 format syntax