Fix Python 3 by handling StringIO

Fixes GH-20
Merge pull request #21 from msabramo/fix_py3_StringIO

Fix Python 3 by handling StringIO