To split string on whitespaces in Python you can use str.split() method without an argument splits on whitespace:
>>> "many fancy word \nhello \thi".split()
['many', 'fancy', 'word', 'hello', 'hi']
To know more about this you can have a look at the following video tutorial:-