docs: def to_abook(card, section, book, bookfile=None):
          """Converts a vCard to Abook"""
          book[section] = {}
          book[section]['name'] = card.fn.value
  
          if hasattr(card, 'email'):
              book[section]['email'] = ','.join([e.value for e in card.email_list])
  
          if hasattr(card, 'adr'):
              Abook._conv_adr(card.adr, book[section])
  
          if hasattr(card, 'tel_list'):
              Abook._conv_tel_list(card.tel_list, book[section])
  
          if hasattr(card, 'nickname') and card.nickname.value:
              book[section]['nick'] = card.nickname.value
  
          if hasattr(card, 'url') and card.url.value:
              book[section]['url'] = card.url.value
  
          if hasattr(card, 'note') and card.note.value:
              book[section]['notes'] = card.note.value
  
          if hasattr(card, 'photo') and bookfile:
              try:
                  photo_file = join(dirname(bookfile), 'photo/%s.%s' % (card.fn.value, card.photo.TYPE_param))
                  open(photo_file, 'wb').write(card.photo.value)
              except IOError:
                  pass