StringIO compatible python 2 and 3 

By the way, this library seems now compatible with python 3. It could be declared as on pypi.