[python] Using Python, find anagrams for a list of words