session = requests.session()
p = session.post('http://example.com', {'user': user, 'password': password})
print('headers', p.headers)
print('cookies', requests.utils.dict_from_cookiejar(session.cookies))
Python Requests - managing cookies