title: Python: How to create a 16 character long digest using hashlib.md5 algorithm?
body: <p><a href="http://php.net/manual/en/function.md5.php" rel="noreferrer">Php's md5 function</a> takes an optional second argument which, if true, returns a smaller hash of length 16 instead of the normal 32 character long hash.</p>
  
  <p>How can we do the same using python's <code>hashlib.md5</code>.</p>