title: find difference of values between 2 array of objects in python
body: <p>I have 2 array of objects:</p>
  <pre><code>a = [{'a': 1, 'b': 2}, {'c': 3, 'd': 4}, {'e': 5, 'f': 6}]
  b = [{'a': 1, 'b': 2}, {'g': 3, 'h': 4}, {'f': 6, 'e': 5}]
  
  Output:
  a - b = [{'c': 3, 'd': 4}] (&quot;-&quot; symbol is only for representation, showing difference. Not mathematical minus.)
  b - a = [{'g': 3, 'h': 4}]
  </code></pre>
  <p>In every array, the order of key may be different. I can try following and check for that:</p>
  <pre><code>for i in range(len(a)):
     current_val = a[i]
     for x, y in current_val.items:
        //search x keyword in array b and compare it with b
  </code></pre>
  <p>but this approach doesn't feel right. Is there simpler way to do this or any utility library which can do this similar to <code>fnc</code> or <code>pydash</code>?</p>