Python script to find and replace files by extension.