update the PYResource to load file with name check