def extract_test_params(grid):
    """
    PARAMS
    ==========
    grid: dict
        keys are model names given by myself and values are 
        dictionaries containing model parameters used by scikit learn models

    RETURNS
    ==========
    For each parameter list contained in a dictionary for a model, this function returns
    a dictionary containing parameters as keys and values are a list containing just 1 value each
    """
    result = dict()
    for key, val in grid.items():
        the = dict()
        for i, j in val.items():
            j = j[:1]
            the[i] = j
        result[key] = the
    return result