The root of the problem stems from trying to convert this C function to Python:
unsigned char CheckSum(unsigned char *uBuff, unsigned char uBuffLen) { unsigne