check_spell_ec: fix the list parameter (python3 porting)
The sort parameter used the very old (<= python 2.4) syntax which contains a comparator function between two values. The current syntax uses the key keyword and this specific example (use an existing function with cmp_to_key) is luckily explicitly documented in the python 3 sorting documentation.