Tips: the first session cookie is probably returned if you do a GET on the homepage of the website, so you can simplify your script by
Declaring the requests session, doing get on the homepage and then doing get on the endpoint
It will also prevent issue with session expiration