Would this be better as a set instead of a list? You can always call `sorted()` on a set to get a sorted list out of it, and it seems like you're often checking if a string is in `COUNTRY_CODES`, which is a more efficient operation with sets than with lists.