split a string in python,a.rstrip().split('\n')