code: def methodReturnReceived(self, mret):
          
          d, timeout = self._pendingCalls.get(mret.reply_serial, (None, None))
          if timeout:
              timeout.cancel()
          if d:
              del self._pendingCalls[mret.reply_serial]
              d.callback(mret)
docs: Called when a method return message is received