@@ -0,0 +1,173 @@
+from six import PY3, binary_type%0A%0A__all__ = 'byte_to_int',%0A%0A%0Adef byte_to_int(x):%0A    if PY3 and isinstance(x, binary_type):%0A        return x%0A    else:%0A        return ord(x)%0A

Replace `ord` depends on Python version