def first_values(query_parameters):
    """
    Select the first values from a dictionary of query parameters

    Query strings support multiple values for one key.  This function takes a dictionary of lists
    and returns a dictionary of strings, where the string is the first value in each list.
    """
    return {key: value[0] for (key, value) in query_parameters.items()}