import yaml


def load_config(filename):
    """Load a configuration from a file."""
    print("Reading configuration from %s" % filename)
    with open(filename, "r") as stream:
        config = yaml.safe_load(stream)
    return config