Use Py2/Py3 compatible StringIO import