Python "Compare & Strip" - script

Anyone ever used these in combination in their project? I want to try it. Any suggestion where I can find a tutorial on it?