# flake8: noqa F821

import sys


def _xrange(*args, **kwargs):
    if sys.version_info[0] == 2:
        return xrange(*args, **kwargs)
    else:
        return range(*args, **kwargs)

# flake8: noqa F821

import sys


def _xrange(*args, **kwargs):
    if sys.version_info[0] == 2:
        return xrange(*args, **kwargs)
    else:
        return range(*args, **kwargs)


if sys.version_info[0] == 2:
    binary_type = str
    text_type = unicode
else:
    binary_type = bytes
    text_type = str

Add `binary_type` and `text_type` constants