title: Python MD5 not matching md5 in terminal
body: <p>I am getting MD5 of several files using python function:</p>
  <pre><code>filehash = hashlib.md5(file)
  print &quot;FILE HASH: &quot; + filehash.hexdigest()
  </code></pre>
  <p>though when I go to the terminal and do a</p>
  <pre><code>md5 file
  </code></pre>
  <p>the result I'm getting is not the same my python script is outputting (they don't match). Any chance someone knows why?</p>