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