def create_contact_group(gd_client): new_group = gdata.contacts.data.GroupEntry(title=atom.data.Title(text='Salsa group')) new_group.extended_properties.append( gdata.data.ExtendedProperty(name='more info about the group', value='Nice people.')) created_group = gd_client.CreateGroup(new_group) print "Contact group's Atom Id: %s" % created_group.id.text return created_group