I had a problem with the oauth for trakt. I am NOT a python developer, mostly deal with C# and backend code.
I fixed part of it by changing the post function in the trakt.py in content/services by changing the headers when it's getting a code versus when it's just talking to trakt.
There is python library for trakt I'll check later if this is what the problem was.