title: python 2.7 equivalent of built-in method int.from_bytes
body: <p>I'm trying to make my project python2.7 and 3 compatible and python 3 has the built in method int.from_bytes. Does the equivalent exist in python 2.7 or rather what would be the best way to make this code 2.7 and 3 compatible?</p>
  
  <pre><code>&gt;&gt;&gt; int.from_bytes(b"f483", byteorder="big")
  1714698291
  </code></pre>