I think the purpose in the original code was to split on 3 spaces, not on a single whitespace, in python would the default str.split() do that?