Fix for python3 import io.StringIO