title: How to add a cookie to the cookiejar in python requests library
body: <p>I am trying to add a cookie to an existing cookiejar using the python requests 1.2.3 library.  Every time I add the new cookie, the data in the jar is munged for the new cookie.  Keys missing, Values missing or matched to incorrect Keys.  I'm not sure if it's a Request library bug or I'm not sending the cookie correctly.  I'm using the following code that is resulting in a bad cookie in cookiejar.  Am I formatting the cookie correctly? Any ideas?</p>
  
  <pre><code>    my_cookie = {
             'domain':'www.mydomain.com',
             'expires':None,
             'name':'COOKIE_NAME',
             'path':'/',
             'value':'the cookie works',
             'version':0
  }
  
  s = requests.Session()
  requests.utils.add_dict_to_cookiejar(s.cookies, my_cookie)
  </code></pre>