code: def _getdevicetuple(iobtdevice):
      
      addr = _macutil.formatdevaddr(iobtdevice.getAddressString())
      name = iobtdevice.getName()
      cod = iobtdevice.getClassOfDevice()
      return (addr, name, cod)
docs: Returns an (addr, name, COD) device tuple from a IOBluetoothDevice object.