in python/awsgs.py [0:0]
def checkForTrailer(data):
trailerIncluded = False
# We only want bit 6, set the others to zeros and shift 4 places to the right, then trim length to 1
binString = convertMaskAndTrimBytesToBitString(data, 0b00000100, 4, 1)
trailerIncluded = binString == '1'
return [trailerIncluded, binString]