def directory_changed(monitor, file1, file2, evt_type):
    if evt_type in (gio.FILE_MONITOR_EVENT_CREATED, gio.
        FILE_MONITOR_EVENT_DELETED):
        pass
detect new or modified files with python