Python YouTube Upload OAuth Authentication

I’m using the sample code here:

When ran, it opens Lynx (browser) and sends me to a Google login page. I need to be able to upload videos without logging in each time, using a OAuth 2.0 token.

Where do I specify the access_token that I want to use? I can’t find an active Google API help forum.