Rewritting of watcher using python-daemon and lockfile