def process_events (events, fn):
    """ (list, fn) -> list

    Takes a list of events as well as a function that is called on each event.
    A list is returned, which is composed of the return values from the 
    function.

    """

    aggregator = []

    for event in events:
        aggregator.append(fn(event))
        

    return aggregator