blank lines in file after sorting content of a text file in python,lines.sort()