def dictify_cookies(cookie_list):
    """
    Turns list of cookies into dictionary where key is name of the cookie
    and value is list of cookie values.

    Args:
        cookie_list: List of CookieJar objects.

    Returns:
        Dictionary of cookie names as key and list of cookie values as
        dictionary value.
        Example:

        {"__cfduid":["db37572f9dd1", "d02f7e47ecb5"],
        "ts":["1380409840349","1380409840992"]}

    """
    dicookie = {}
    cookies = []
    _ = [cookies.extend(i.items()) for i in cookie_list]
    for name, cookie_val in cookies:
        if name in dicookie:
            dicookie[name].append(cookie_val)
        else:
            dicookie[name] = [cookie_val]
    return dicookie