I renamed it from "yaml" to "YAML" because the statement import yaml just loads the yaml directory instead of importing the yaml module that can load yaml files.
import yaml