Update daemon.py

Added licensing information.