fix StringIO import for python3
Merge pull request #5 from andreas-h/master

fix stringio import for py3