Fix regression in StringIO.open and unused imports.