@staticmethod
    def cf_dictionary_to_dict(dictionary):

        dict_length = CoreFoundation.CFDictionaryGetCount(dictionary)

        keys = new(CoreFoundation, 'CFTypeRef[%s]' % dict_length)
        values = new(CoreFoundation, 'CFTypeRef[%s]' % dict_length)
        CoreFoundation.CFDictionaryGetKeysAndValues(
            dictionary,
            keys,
            values
        )

        output = {}
        for index in range(0, dict_length):
            output[CFHelpers.native(keys[index])] = CFHelpers.native(values[index])

        return output
Converts a CFDictionary object into a python dictionary
dataset/ETHPy150Open wbond/oscrypto/oscrypto/_osx/_core_foundation_cffi.py/CFHelpers.cf_dictionary_to_dict