def string_to_tuple( word ) :
    """Convert string word into a tuple suitable for use as a key to a dictionary
of anagrams"""
    this_word_list = list(word)     # convert the string to a list so we can sort it
    this_word_list.sort()
    this_word_tuple = tuple( this_word_list )   # Conver the list to a tuple which can be the key to a dictionary
    return this_word_tuple