Unique Character Sorting in Python (Challenge)