for news_item in news['news']:
if datetime.now().isoformat() > news_item['publishedAt'] and not news_item['isDeleted']:
news_filter = lambda i: datetime.now().isoformat() > i['publishedAt'] and not i['isDeleted']
for news_item in filter(news_filter, news['news']):
...