for word in s.split():
    if not word.endswith(':'):
        L.append(word)
return ' '.join(L)
print(RemoveDynamicWords('word: blah'))
How can I remove all words that end in ":" from a string in Python?