Some extensions to pyyaml.