code: def get_device_major_minor(dev_path):
      
      stat = os.lstat(dev_path)
      return os.major(stat.st_rdev), os.minor(stat.st_rdev)
docs: Returns the device (major, minor) tuple for simplicity
      :param dev_path: Path to the device
      :return: (device major, device minor)
      :rtype: (int, int)