title: Python: check if "two" .doc files are the same file?
body: <p>IMAP filtering and searching dictates that my script works as follows: Each night I receive an email with a relevant <code>.doc</code> file attached to it. My Python script always selects the last (most recent) email, and does certain operations on that <code>.doc</code> file.</p>
  
  <p>All <code>.doc</code> files sent daily are named exactly the same.</p>
  
  <p>Issue is: Sometimes the sender neglects to send a new file. The result is that my script does the operation on the wrong file (the one from the day before). If I can somehow check that two files are actually (copies) of the same file, then I can avoid doing the operation.</p>
  
  <p>How is this most easily/effectively achievable in Python?</p>