formatting summary generation python files