[python 3] Use StringIO instead of cStringIO (c.f. #157)