Replace all instances of YAML.load(open(...)) with YAML.load_file(...).