title: replace multiple values of a list with one call python
body: <p>Given an initial list, I want to change the list using one function call :
  This:</p>
  <pre><code>A=[cat,dog,ostritch]
  </code></pre>
  <p>To This:</p>
  <pre><code>  A=[sal,fred,martin]
  </code></pre>
  <p>I understand we can do</p>
  <pre><code>A.replace('cat', 'sal')
  A.replace('dog', 'fred')
  </code></pre>
  <p>I would like to make some sort of mapping ie so I can just call the replace function only once. ie:</p>
  <pre><code>replace mapping=[cat:sal,dog:fred, ostritch:martin]
  A.replace(A,replace_mapping)
  </code></pre>