title: Convert hex-string to integer with python
body: <p>Note that the problem is not <strong>hex to decimal</strong> but a string of hex values to integer.</p>
  
  <p>Say I've got a sting from a hexdump (eg. '6c 02 00 00') so i need to convert that into actual hex first, and then get the integer it represents... (this particular one would be 620 as an int16 and int32)</p>
  
  <p>I tried a lot of things but confused myself more. Is there a quick way to do such a conversion in python (preferably 3.x)?</p>