refactor: write_conf now returns config as str()

Required for tempest-report-webui refactoring, see
https://github.com/enovance/tempest-report-webui/commit/5043b7a69e