def findIECookie(domain, cookie):
    '''  Finds the ASPN Cookie from IE cookie files '''
    cookie_re = re.compile('%s\n(.*?)\n' % cookie)
    try: 
        l = _getLocation()
    except:
        # just print a debug
        print "Error pulling registry key"
        return None

    # Found the key, now find the files and look through them
    f = _getCookieFiles(l, domain)
    if f: 
        return _findCookie(f, cookie_re)
    else: 
        print "No cookies for that domain found"
        return None
  Finds the ASPN Cookie from IE cookie files 
recipes/Python/80443_Find_IE_Cookie/recipe-80443.py