def __computeChecksum(ensemble):
    """Compute a checksum from header, length, and ensemble"""
    cs = 0
    for byte in range(len(ensemble) - 2):
        cs += ensemble[byte]
    return cs & 65535
