Case insensitive dictionary search with Python,theset = set(k.lower() for k in thedict)