title: binascii.hexlify() returns binary as String and not Integer
body: <p>I'm trying to teach myself python and am just generally messing about with it.
  I have come across a bit of an issue though.</p>
  
  <p>Basically I'm trying to make something that will turn a string into binary, bit-shift it by x, and then return it to you as a new string.</p>
  
  <p>The best Method I have found to achieve this seems to be binascii.hexlify(str).</p>
  
  <p>The problem that I am getting is that this Method does seem to return the binary representation to me... but as a String??</p>
  
  <p>I cannot call int() on the string, and I've tried multiple combinations of bin(int()) etc. I'm a bit stuck here guys, any help would be appreciated :-)</p>
  
  <p>I know I'm probably going about this in the completely wrong way, but hey. I'm teaching myself so... :-)</p>
  
  <p>See code so far below:</p>
  
  <pre><code>import binascii
  
  password = raw_input("Enter your Password")
  bits = int(raw_input("Shift By:"))
  
  def getBinary(word):
      return bin(int(binascii.hexlify(word), 16))
  
  def shift(bin, num):
      return bin &lt;&lt; num
  
  shift(getBinary(password), bits)
  </code></pre>