Typescript Uint8array To Number Array Python Questions For If Statement