Split String Based On Spaces Python Code