New script to prune by rules whose patterns match a key set