StringIO backporting issue resolved