code: def cfarray_to_list(cfarray):
      
      count = cf.CFArrayGetCount(cfarray)
      return [cftype_to_value(c_void_p(cf.CFArrayGetValueAtIndex(cfarray, i)))
              for i in range(count)]
docs: Convert CFArray to python list.