what's the proper way to write comparator as key in python 3 for sorting?,"print(sorted(l, key=my_key))"