def checksum(data, min_message_length):
    """Calculates the 8bit checksum of Paradox messages"""
    c = 0
    if data is None or len(data) < min_message_length:
        return False
    for i in data[:-1]:
        c += i
    r = c % 256 == data[-1]
    return r
