Python permutation difference
<p>Is there something built-in to tell the permutation difference between two list?  E.g.</p>

<pre><code>difference("ijk", "ikj") = (0,2,1)
difference("jik", "ikj") = (2,0,1)
etc ...
</code></pre>

<p>oops, nevermind, here is a snippet</p>

<pre><code>[a.index(i) for i in b]
</code></pre>
