import six

if six.PY3:
	from io import StringIO
	from json import JSONDecodeError
	unicode = str
elif six.PY2:
	from StringIO import StringIO
	unicode = unicode
	JSONDecodeError = ValueError

import six

if six.PY3:
    from io import StringIO
    from json import JSONDecodeError
    unicode = str
elif six.PY2:
    from StringIO import StringIO
    unicode = unicode
    JSONDecodeError = ValueError

use spaces, not tabs