Getting Authentication Token Back in Python using QWebView?

For my redirect URI, I just did http://localhost since I don’t have a website for my desktop app. When I go to my application’s authorization link on my browser, sign in and authorize, the link in the address bar changes to:

http://localhost/#access_token=vknuufe4cltc0hk10pk35bun71592h&scope=user_read+channel_read+user_follows_edit

and I can see that the token is there. However for QWebView I’m not sure how or where I would get the token