title: Python: customized YAML dumping format
body: <p>I'm using PyYAML 3.12 for parsing and dumping YAML files. In a special case, I have to dump a string which can be used in config files. </p>
  
  <pre><code>config: "# something like this"
  </code></pre>
  
  <p>By default, PyYAML dumps it like this:</p>
  
  <pre><code>config: # something like this
  </code></pre>
  
  <p>it obviously doesn't work because it essentially removes it. I tried to do <code>follow_style='"'</code>. It appears to be working but the output is butchered into something that cannot be read by human.</p>
  
  <p>Is there a way to do this nicely? A hook or something that dumps all string with quotes?</p>
  
  <p>ps. I am aware (only from a few minutes ago) of the existence of <code>ruamel.yaml</code> but not sure if it fits my needs. Plus PyYAML has been working fine otherwise for a while now.</p>