You can use the regular expression to split string by an arbitrary number of white spaces:-
re.split(r'\s+',string)
\s is short for any whitespace. So \s+ is contiguous whitespace.
To know more about this you can have a look at the following video tutorial:-