Gcontacts is a project mainly written in Python, it's free.
A simple script to fetch google contacts as a csv file
You probably don't want to use this.