def _from_bytes(bytes, byteorder='big', signed=False):
    """For python 3, which has a native implementation of this function."""
    return int.from_bytes(bytes, byteorder=byteorder, signed=signed)
