Starts a local web server and wait for a redirect.

def run_local(client):
  """Starts a local web server and wait for a redirect."""
  webbrowser.open(client.get_auth_uri())
  code = wait_for_redirect()
  return client.get_token(code)