@staticmethod<EOL><INDENT>def cf_string_to_unicode(value):<DEDENT>
string = CoreFoundation.CFStringGetCStringPtr(<EOL>_cast_pointer_p(value),<EOL>kCFStringEncodingUTF8<EOL>)<EOL>if string is None:<EOL><INDENT>buffer = buffer_from_bytes(<NUM_LIT>)<EOL>result = CoreFoundation.CFStringGetCString(<EOL>_cast_pointer_p(value),<EOL>buffer,<EOL><NUM_LIT>,<EOL>kCFStringEncodingUTF8<EOL>)<EOL>if not result:<EOL><INDENT>raise OSError('<STR_LIT>')<EOL><DEDENT>string = byte_string_from_buffer(buffer)<EOL><DEDENT>if string is not None:<EOL><INDENT>string = string.decode('<STR_LIT:utf-8>')<EOL><DEDENT>return string<EOL>
Creates a python unicode string from a CFString object

:param value:
    The CFString to convert

:return:
    A python unicode string