old_contents: import pyinotify
  
  wm = pyinotify.WatchManager()
  
  mask = pyinotify.IN_DELETE | pyinotify.IN_CREATE
  
  class EventHandler(pyinotify.ProcessEvent):
      def process_IN_CREATE(self, event):
          print "Creating:", event.pathname
  
      def process_IN_DELETE(self, event):
          print "Removing:", event.pathname
  
  handler = EventHandler()
  notifier = pyinotify.Notifier(wm, handler)
  wdd = wm.add_watch('/tmp', mask, rec=TRUE)
  
  notifier.loop()
new_contents: import pyinotify
  
  wm = pyinotify.WatchManager()
  
  mask = pyinotify.IN_DELETE | pyinotify.IN_CREATE
  
  class EventHandler(pyinotify.ProcessEvent):
      def process_IN_CREATE(self, event):
          print "Creating:", event.pathname
  
      def process_IN_DELETE(self, event):
          print "Removing:", event.pathname
  
  handler = EventHandler()
  notifier = pyinotify.Notifier(wm, handler)
  wdd = wm.add_watch('/tmp', mask, rec=True)
  
  notifier.loop()
subject: Fix typo.