use os.walk instead of shelling out to find command
simplify script to remove seemingly useless main().