python daemon test script