def processdata(journalismdata): summaries = [article.summary for article in journalismdata if 'lockdown' in article.keywords]; initialsummary = summaries[0]; restartfrombaseline = lambda x: x[0]; refinedsummaries = [cutout(unwanted) for unwanted in summaries]; return {'initial': initialsummary, 'refined': restartfrombaseline(refinedsummaries)}; processdata(journalismarticles)