code: def sendCommandAPDU(self, command):
          
  
          response, sw1, sw2 = self.cs.connection.transmit(command)
  
          if len(response) > 2:
              response.append(sw1)
              response.append(sw2)
          return response, sw1, sw2
docs: Send an APDU command to the connected smartcard.
  
          @param command: list of APDU bytes, e.g. [0xA0, 0xA4, 0x00, 0x00, 0x02]
  
          @return: a tuple (response, sw1, sw2) where
                  response is the APDU response
                  sw1, sw2 are the two status words