Google provide a package called python-gdata, which is an interface
for using many of their API services. A full list is here:
http://code.google.com/apis/gdata/docs/directory.html
The docs on that site are extensive, for instance here is the python
language guide for accessing google docs:
http://code.google.com/apis/documents/docs/3.0/developers_guide_python.html
Cheers
Tom