StringIO changed in Python 3, as well.