import sys

if sys.version_info.major < 3:
    from cStringIO import StringIO
    BytesIO = StringIO
else:
    from io import BytesIO
    from io import StringIO

_ = BytesIO
_ = StringIO

import sys

if sys.version_info[0] < 3:
    from cStringIO import StringIO
    BytesIO = StringIO
else:
    from io import BytesIO
    from io import StringIO

_ = BytesIO
_ = StringIO

Fix sys.version_info lookup for python 2
Fix sys.version_info lookup for python 2
