code: def _setup_pyudev_monitoring(self):
          
          context = pyudev.Context()
          monitor = pyudev.Monitor.from_netlink(context)
          self.udev_observer = pyudev.MonitorObserver(monitor, self._udev_event)
          self.udev_observer.start()
          self.py3_wrapper.log("udev monitoring enabled")
docs: Setup the udev monitor.