'Can initialize CFString with python or objc strings.'

def __init__(self, obj=''):

    if isinstance(obj, (ctypes.c_void_p, int)):
        super(CFString, self).__init__(obj)
        self.dll.CFRetain(obj)
    elif isinstance(obj, basestring):
        super(CFString, self).__init__(None)
        self.ref = self.PyStringToCFString(obj)
    else:
        raise TypeError('CFString    initializer    must    be    python    or    objc    string.')
