def compare_lists(old=None, new=None):
 ret = dict()
 for item in new:
  if (item not in old):
   ret['new'] = item
 for item in old:
  if (item not in new):
   ret['old'] = item
 return ret

def compare_lists ( old = None , new = None ) : ret = dict ( ) for item in new : if ( item not in old ) : ret [ 'new' ] = item for item in old : if ( item not in new ) : ret [ 'old' ] = item return ret
compare before and after results from various salt functions .