code: def _send_command(self, cmd_class, command, payload, timeout=3.0):
          
  
          if len(payload) > 60:
              return ValueError("Attempting to send a BGAPI packet with length > 60 is not allowed", actual_length=len(payload), command=command, command_class=cmd_class)
  
          header = bytearray(4)
          header[0] = 0
          header[1] = len(payload)
          header[2] = cmd_class
          header[3] = command
  
          packet = header + bytearray(payload)
          self._stream.write(bytes(packet))
  
          #Every command has a response so wait for the response here
          response = self._receive_packet(timeout)
          return response
docs: Send a BGAPI packet to the dongle and return the response