append a frame containing a uint32

def uint32(self, val):
        """append a frame containing a uint32"""
        try:
            self.msg += [pack("!I", val)]
        except struct.error:
            raise ValueError("Expected uint32")
        return self