try: try: from cStringIO import StringIO except ImportError: from StringIO import StringIO except ImportError: from io import StringIO