daemon was improperly turned into a function in the Python console. Point daemon to window.gui_object.daemon instead.