Update to the latest auth and token uris
diff --git a/samples/oauth2/latitude/latitude.py b/samples/oauth2/latitude/latitude.py
index 18c7a9d..b712066 100644
--- a/samples/oauth2/latitude/latitude.py
+++ b/samples/oauth2/latitude/latitude.py
@@ -24,14 +24,14 @@
 
 
 def main():
-  credentials = Storage('latitude.dat').get()
+  storage = Storage('latitude.dat')
+  credentials = storage.get()
   if credentials is None or credentials.invalid:
     flow = OAuth2WebServerFlow(
         client_id='433807057907.apps.googleusercontent.com',
         client_secret='jigtZpMApkRxncxikFpR+SFg',
         scope='https://www.googleapis.com/auth/latitude',
-        user_agent='latitude-cmdline-sample/1.0',
-        xoauth_displayname='Latitude Client Example App')
+        user_agent='latitude-cmdline-sample/1.0')
 
     credentials = run(flow, storage)
 
diff --git a/samples/oauth2/urlshortener/main.py b/samples/oauth2/urlshortener/main.py
index e129069..32a60df 100644
--- a/samples/oauth2/urlshortener/main.py
+++ b/samples/oauth2/urlshortener/main.py
@@ -32,8 +32,7 @@
         client_id='433807057907.apps.googleusercontent.com',
         client_secret='jigtZpMApkRxncxikFpR+SFg',
         scope='https://www.googleapis.com/auth/urlshortener',
-        user_agent='urlshortener-cmdline-sample/1.0',
-        xoauth_displayname='URL Shortener Client Example App')
+        user_agent='urlshortener-cmdline-sample/1.0')
 
     credentials = run(flow, storage)