python user input control daemon