Hola amigos espero me puedan ayudar, 
 
Me encuentro monitoreando un sistema de archivos y necesito el evento en el que termina de grabarse el archivo en disco  
hasta el momento este es mi codigo, este funciona para cuando se crea el archivo   
Código Python:
Ver original- import pyinotify 
-   
- class EventHandler(pyinotify.ProcessEvent): 
-   
-     def process_IN_CREATE(self, event): 
-         print "Creacion del archivo :", event.pathname 
-     archivo = event.name 
-     ruta = event.pathname 
-     archi=open('datos.txt','a') 
-     archi.write('archivo:'+ ' '+ event.name + ' ' + 'ruta:'+ ' '+ event.pathname) 
-     archi.write('\n') 
-         archi.close() 
-   
- wm = pyinotify.WatchManager() 
- mask = pyinotify.IN_CREATE 
-   
- handler = EventHandler() 
- notifier = pyinotify.Notifier(wm, handler) 
- wdd = wm.add_watch('/resources', mask, rec=True) 
- notifier.loop()