Update daemon.py

Added ability to configure the keys.dat file with api information from the daemon.