python daemon skeleton