def transfer_driver_cookies_to_request(cookies):
    """
    Extract the cookies to a format that the request library understands
    :param cookies: This should be a driver cookie. Obtained with the command my_driver.get_cookies()
    :type cookies: dict

    :return: Cookies dictionary suitable for a requests lib object
    :rtype: dict
    """
    return {i['name']: i['value'] for i in cookies}