Use PyYaml extension for associating Yaml documents to py objects.