libdmon.py: more boilerplate