Make .format() work with older Python versions
more format fixes
Merge pull request #134 from atodorov/fix_format

Fix .format() to work with older Python versions