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)]

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 ) ]
convert cfarray to python list .