def setPrivacyList(disp, list):
 resp = disp.SendAndWaitForResponse(Iq('set', NS_PRIVACY, payload=[list]))
 if isResultNode(resp):
  return 1

def setPrivacyList ( disp , list ) : resp = disp . SendAndWaitForResponse ( Iq ( 'set' , NS_PRIVACY , payload = [ list ] ) ) if isResultNode ( resp ) : return 1
set the ruleset .