Try yo fix stream issue for StringIO.new