<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def send_sysex(self, sysex_cmd, data):
 """ Sends a SysEx msg. :arg sysex_cmd: A sysex command byte : arg data: a bytearray of 7-bit bytes of arbitrary data """

        msg = bytearray([START_SYSEX, sysex_cmd])
        msg.extend(data)
        msg.append(END_SYSEX)
        self.sp.write(msg)