code: def get_xid_device(device_number):
      
      scanner = XidScanner()
      com = scanner.device_at_index(device_number)
      com.open()
      return XidDevice(com)
docs: returns device at a given index.
  
      Raises ValueError if the device at the passed in index doesn't
      exist.