Minor changes to cookie_daemon.py