Consolidate 96-133.  Something like this:

filenames = ["{0}".format(yaml_config_file), "{0}_{1}".format(gethostname(), yaml_config_file), "settings/default/{0}".format(yaml_config_file), "settings/local/{0}".format(yaml_config_file), "settings/{0}/{1}".format(gethostname(), yaml_config_file)]
config_dict = read_yaml_config(yaml_config_dir, config_filename)
for config_filename in filenames:
    if config_dict:
        retVal.update(config_dict)
        retVal['yaml_config'].append(config_filename)