title: create a new dict based on old dict
body: <p>I am have the following dict:</p>
  
  <pre><code>abc = {"type":"insecure","id":"1","name":"peter"}
  </code></pre>
  
  <p>what I want to do is to have a new dict based on the old dict in which there is no key "type" and key "id" is changed to "identity". The new dict will look as follows:</p>
  
  <pre><code>xyz = {"identity":"1","name":"peter"}
  </code></pre>
  
  <p>The solution that I came up was as follows:</p>
  
  <pre><code>abc = {"type":"insecure","id":"1","name":"peter"}
  xyz = {}
  black_list_values = set(("type","id"))
  for k in abc:
      if k not in blacklist_values:
          xyz[k] = abc[k]
  xyz["identity"] = abc["id"]
  </code></pre>
  
  <p>I was wondering if its the fastest and efficient way to do that? Right now, "abc" have only three values. If "abc" is much bigger and have many values then is my solution still the efficient and fast. </p>