Yaml to flat converter and vice versa