another fix on StringIO import