modified materials.py to check for materials hdf files before generating them