def dict_from_cookiejar(cj):
cookie_dict = {}<EOL>for cookie in cj:<EOL><INDENT>cookie_dict[cookie.name] = cookie.value<EOL><DEDENT>return cookie_dict<EOL>
Returns a key/value dictionary from a CookieJar.

    :param cj: CookieJar object to extract cookies from.