Move conditional StringIO import to py3combat.