Some refactoring for nicer YAML output (preserve order and prefer block-literal strings
Refactor -> quick and dirty script to distributable python project