Modify gen_sets.py and load_sets.py.