docs: def should_handle(self, event_type, filename):
          """Check if an event should be handled.
  
          An event should be handled if a file in the searchpath was modified.
  
          :param event_type: a string, representing the type of event
  
          :param filename: the path to the file that triggered the event.
          """
          return (event_type in ("modified", "created") and
                  filename.startswith(self.searchpath) and
                  os.path.isfile(filename))