code: def md5_hash_file(fh):
      
      md5 = hashlib.md5()
      while True:
          data = fh.read(8192)
          if not data:
              break
          md5.update(data)
      return md5.hexdigest()
docs: Return the md5 hash of the given file-object