Compare the md5sum against that on the system
Return true if the file is modified
def isModified(fileName, fileMD5): m = md5.new() f = open(fileName,"r") data = f.read() f.close() m.update(data) if fileMD5 != m.hexdigest(): return 1 else: return 0