Create a function in Python to generate an alphabetically sorted list of unique words from a given string.
Not applicable
def sort_words(str):
 words = str.split(' ')
 words = set(words)
 words = list(words)
 words.sort()
 return words