human
Complete this python program:
def _CmpToKey(mycmp):
assistant
#Here is the Python program you requested.

    """Convert a cmp= function into a key= function
    """
    class K(object, ):
        def __init__(self, obj):
            self.obj = obj
        def __lt__(self, other):
            return (mycmp(self.obj, other.obj) == (-1))
    return K