append a frame containing 3 uint8

def uint8_3(self, val1, val2, val3):
        """append a frame containing 3 uint8"""
        try:
            self.msg += [pack("BBB", val1, val2, val3)]
        except struct.error:
            raise ValueError("Expected uint8")
        return self