More work on python daemon