title: md5 to integer bits in python
body: <p>I'm trying to convert an MD5 hashed value into a a bit integer in python. Does anyone have any idea how I would go about doing this?</p>
  
  <p>I currently go through several ngrams applying a hash to each ngram:</p>
  
  <pre><code>for sentence in range(0,len(doc)):
          for i in range(len(doc[sentence]) - 4 + 1):
              ngram = doc[sentence][i:i + 4]
              hashWord = hashlib.md5()
              hashWord.update(ngram)
  </code></pre>
  
  <p>Thanks for any help.</p>