Also, I think the oauth2 library on Ubuntu should have a Ubuntu-one auth client (even though it's just generic oauth to login.ubuntu.com) as a built-in in oauth2/clients. Just saying, that's how I would do it (did it).
from oauth2.clients import uoneauth
consumer, token = uoneauth.get_token(email, pass, descr)
Just saying