Create a Python program that takes a string of text and returns a list of all words in it.
"This is a sentence."
def get_words(sentence):
    words = sentence.split(' ')
    return words

words = get_words('This is a sentence.')
print(words)