fix for string.format()
Merge pull request #7 from sobhe/format-fix

implementing __format__