how to sort words alphabetically in python