What to do with the Redirect URL with a Python Script?

Ignoring OIDC There are three kinds of oAuth

Implicit
code
client credentials

implcit and code auth provide user tokens.