See https://pypi.python.org/pypi/python-daemon/