def _real_send(self, apdu): result = Card._real_send(self, apdu) self.last_sw = result.sw self.sw_changed = True return result