<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def get_fresh_content(top=4, additional=10, featured=False):
 """ Requires articles, photos and video packages to be installed. Returns published *Featured* content (articles, galleries, video, etc) and an additional batch of fresh regular (featured or not) content. The number of objects returned is defined when the tag is called. The top item type is defined in the sites admin for sites that have the supersites app enabled. If "featured" is True, will limit to only featured content. Usage:: {% get_fresh_content 5 10 %} Would return five top objects and 10 additional {% get_fresh_content 4 8 featured %} Would return four top objects and 8 additional, limited to featured content. What you get:: 'top_item': the top featured item 'top_item_type': the content type for the top item (article, gallery, video) 'featured': Additional featured items. If you asked for 5 featureed items, there will be four -- five minus the one that's in `top_item`. 'articles': featured articles, minus the top item 'galleries': featured galleries, minus the top item 'vids': featured video, minus the top item, 'more_articles': A stack of articles, excluding what's in featured, sliced to the number passed for <num_regular>, 'more_galleries': A stack of galleries, excluding what's in featured, sliced to the number passed for <num_regular>, 'additional': A mixed list of articles and galleries, excluding what's in featured, sliced to the number passed for <num_regular>, """

    from articles.models import Article
    from photos.models import Gallery
    from video.models import Video

    articles = Article.published.only('title', 'summary', 'slug', 'created')
    galleries = Gallery.published.only('title', 'summary', 'slug', 'created')
    videos = Video.published.only('title', 'summary', 'slug', 'created')

    if featured:
        articles = articles.filter(featured=True)
        galleries = galleries.filter(featured=True)
        videos = videos.filter(featured=True)

    # now slice to maximum possible for each group
    # and go ahead and make them lists for chaining
    max_total = top + additional
    articles = list(articles[:max_total])
    galleries = list(galleries[:max_total])
    videos = list(videos[:max_total])

    # chain the lists now
    content = chain(articles, galleries, videos)
    content = sorted(content, key=lambda instance: instance.created)
    content.reverse()

    top_content = content[:top]
    additional_content = content[top:max_total]
    return {
        'top_content': top_content,
        'additional_content': additional_content,
        'MEDIA_URL': settings.MEDIA_URL,
    }