move summary prep work into summary.py