Template for a python daemon