Use Python to split a string and output each token into seperate lines