Fixing up bugs in tools/exp1_analysis.py.