always use StringIO.StringIO in Python 2