Script updates

updated version of dagmc_get_materials.py
fixed an error with test_functions.py