def cmplt((type_a, value_a), (type_b, value_b)): return ...
what do you think the result of
def cmplt((type_a, value_a), (type_b, value_b)): return locals()
That's wrong. It has those four keys, and two more: '.0' and .1', whose values are the packed tuples.
!?!?!