<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def uint64(self, val):
 """append a frame containing a uint64"""

        try:
            self.msg += [pack("!Q", val)]
        except struct.error:
            raise ValueError("Expected uint64")
        return self