waitcond is a script to specify a combination of events using boolean expressions over various events. It can periodically grep in files, wait for the (dis)appearance of files or processes, wait for certain CPU/net/disk idle values, or wait for an idle tty. waitcond is meant to be combined with some notification tool or system.
py-setproctitle is a library that allows a Python process to change its title, as displayed by system tools such as ps and top. Changing the title is useful in multi-process systems, for example when a master process is forked: changing the child's title allows you to identify the task each process is busy with. It is based on PostgreSQL's multi-platform implementation.