reducer_loc.py