Use io.BytesIO() in favor of StringIO to be python3 friendly
Merge pull request #41 from alex/stringio-py3k

Use io.BytesIO() in favor of StringIO to be python3 friendly