create and control a daemon, in Python