Calculate the CRC for the value in Python 3

    :param bytes value: The value to return for the CRC Checksum
    :rtype: int

def _py3_crc16(value):
    """Calculate the CRC for the value in Python 3

    :param bytes value: The value to return for the CRC Checksum
    :rtype: int

    """
    crc = 0
    for byte in value:
        crc = ((crc << 8) & 0xffff) ^ _CRC16_LOOKUP[((crc >> 8) ^ byte) & 0xff]
    return crc