Restored generate_summaries.py as it is still being used.