modernize: Use io.StringIO instead of cStringIO

It turns out that Python has its `io` modules since Python 2.6,
something I didn't know. It simplifies the two previous `cStringIO` uses
and removes the need for a `compat.StringIO`.

Signed-off-by: Virgil Dupras <hsoft@hardcoded.net>