A python algorithm to summarize articles