Some indent spacing mismatch
Updated output to use yaml.dump
Use yaml.safedump for charms.