def METHOD_NAME(token=None, session_token=None):
    gd_client = gdata.spreadsheet.service.SpreadsheetsService()
    if session_token:
        gd_client.SetAuthSubToken(session_token)
    elif token:
        gd_client.SetAuthSubToken(token)
        gd_client.UpgradeToSessionToken()
    else:
        gd_client.email = email
        gd_client.password = password
        gd_client.source = 'Exhibit Submitter'
        gd_client.ProgrammaticLogin()
    return gd_client