@staticmethod<EOL><INDENT>def representer(dumper, data):<DEDENT>
tag = yaml.resolver.BaseResolver.DEFAULT_MAPPING_TAG<EOL>return dumper.represent_mapping(<EOL>tag, data.todict().items(), flow_style=True)<EOL>
http://stackoverflow.com/a/14001707/4075339
http://stackoverflow.com/a/21912744/4075339