bookindex reduce.py: make consistent with log_crunch