Python string to integer value
<p>I'd like to know how to convert strings in Python to their corresponding integer values, like so:</p>

<p><code>&gt;&gt;&gt;print WhateverFunctionDoesThis('\x41\x42')</code> </p>

<p><code>&gt;&gt;&gt;16706</code></p>

<p>I've searched around but haven't been able to find an easy way to do this. </p>

<p>Thank you.</p>
