move {parse,write}_config as classmethods to Daemon