from functools import reduce


def average_results(results):
    """ Takes in list of dictionary result and returns the average dictionary results. """
    # combine results
    avg_results = {}
    for k in results[0].keys():
        avg_results[k] = reduce(lambda a, b: a + b[k], results, 0) / len(results)

    return avg_results