def dict_lowercase_content(d):
    """Produces a copy of `d` with the `content` key lowercased"""
copy = dict(d)
if 'content' in copy:
    copy['content'] = copy['content'].lower()
return copy

def to_lowercase(tweets):
    return map(dict_lowercase_content, tweets)
How to use map to lowercase strings in a dictionary?