title: Python - Google OAuth generate token from authorization code
body: <p>I have an python google cloud function which receives a OAuth authorization code as an argument. I want to exchange this code for a token which can be used to authenticate a service object.</p>
  <p>The code is generated externally and passed to this function as a string arguement.</p>
  <p>I've looked at the documentation for <a href="https://google-auth-oauthlib.readthedocs.io/en/latest/reference/google_auth_oauthlib.flow.html" rel="nofollow noreferrer">google_auth_oauthlib.flow</a>. But it expects a flow object created to handle the auth. In my case I only have the code as the result.</p>
  <p>How can I exchange a authorization code as string into a token?</p>