Fixed StringIO import bug