def lbp_key(f):
 return (sig_key(Sign(f), Polyn(f).ring.order), (- Num(f)))

def lbp_key ( f ) : return ( sig_key ( Sign ( f ) , Polyn ( f ) . ring . order ) , ( - Num ( f ) ) )
key for comparing two labeled polynomials .