Generate a list of all permutations of the letters in a given word using Python.
word = 'ABC'
import itertools

set_ABC = set(list('ABC'))
all_permutations = list(itertools.permutations(set_ABC))

# print all obtained permutations
{print(''.join(words)) for words in all_permutations}