load YAML using safe_load instead of load for security reasons.
This will raise an error if you try to set anything other than primitive types.