Sorting a text file alphabetically (Python),lines.sort()