Closed files in reducer.py