Python Compare Strings Lexicographically Ordered Meaning