Prototype for pyinotify listener