Add timeout/application support to gnotify.py