Yeah, I was printing r instead of r.text, so that’s my fault, sorry.
I now can get the app access key, but like before, my client ID and app access token are not matching according to the error response. I have generated a new app access token that expires in 2 months, so I don’t think that’s the problem. Sorry for being a noob at this.