if (not options.attributes is None) and (len(options.attributes) > 0):
for contact in contacts:
print contact.get_property("full-name")
for a in options.attributes:
print contact.get_property(a)
if options.list:
for contact in contacts:
for p in contact.props:
value = contact.get_property(p.name)
if not value is None:
print p.name, value

if options.export:
for contact in contacts:
print contact.get_vcard_string()