def byte2int(value):
if PY2:<EOL><INDENT>return ord(value)<EOL><DEDENT>return value<EOL>
Python 3 gets int from bytestring, Python 2 required ord.
This abstracts that difference away.

:param value: single value from byte string
:return: int of value