import yaml with open("config.yaml", "r") as f: settings = yaml.load(f)