StringIO compatible python 2 and 3
Merge pull request #20 from mart-e/patch-2

 StringIO compatible python 2 and 3