Convert summary.py to summary module