This should be a nested datastructure instead of YAML. Also, `yaml.load()` should be used only where you explicitly want to execute arbitrary Python code from the input -- `yaml.safe_load()` is for places you don't.