Template for python daemon applications