python script for validating all ploys in a folder updated