Generate a python script to return the longest word in a given sentence.
This is a sentence with multiple words.
def longestWord(sentence):
    words = sentence.split(' ')
    longest = ''
    for word in words:
        if len(word) > len(longest):
            longest = word
    return longest