Contents:
Serializes a world to a YAML file.
world – The world model to serialize.
filename – The name of the file to write to.