Update reducer.py