The first example (i.e. `yaml.load()` in Python) doesn't work with the current version of PyYAML.
Function application was disabled some time ago, and `yaml.load()` logs a noisy deprecation warning telling users to use `yaml.safe_load()` instead [1].