code: def create():
          
          # First, try to use ctypes.
          if ctypes:
              inotify = _CtypesLibcINotifyWrapper()
              if inotify.init():
                  return inotify
          # Second, see if C extension is compiled.
          if inotify_syscalls:
              inotify = _INotifySyscallsWrapper()
              if inotify.init():
                  return inotify
docs: Factory method instanciating and returning the right wrapper.