def make_po_pair(ea, alive): dead = [x for x in idautils.CodeRefsFrom(ea, True) if x != alive] return alive, dead[0]