Edit: fix_reduce.py