Simple Standalone Python OAuth Example?

I’m looking for a straight forward example that let’s you access a web app from python. The only example I’ve found is one that requires using a third party web site (iotdb), but I’d rather have something that doesn’t require passing data through a third party service.

Another example is here: But this example doesn’t seem to quite work.

Any help/pointers/links would be appreciated.