@staticmethod<EOL><INDENT>def cf_dictionary_to_dict(dictionary):<DEDENT>
dict_length = CoreFoundation.CFDictionaryGetCount(dictionary)<EOL>keys = (CFTypeRef * dict_length)()<EOL>values = (CFTypeRef * dict_length)()<EOL>CoreFoundation.CFDictionaryGetKeysAndValues(<EOL>dictionary,<EOL>_cast_pointer_p(keys),<EOL>_cast_pointer_p(values)<EOL>)<EOL>output = {}<EOL>for index in range(<NUM_LIT:0>, dict_length):<EOL><INDENT>output[CFHelpers.native(keys[index])] = CFHelpers.native(values[index])<EOL><DEDENT>return output<EOL>
Converts a CFDictionary object into a python dictionary

:param dictionary:
    The CFDictionary to convert

:return:
    A python dict