Py3 Fix StringIO imports

try:
from cStringIO import StringIO
except ImportError as exc:#py3
from io import StringIO