StringIO.truncate() does not do what it's supposed to in Py32.