'Adds an item to the feed. All args are expected to be Python Unicode
objects except pubdate, which is a datetime.datetime object, and
enclosure, which is an instance of the Enclosure class.'

def add_item(self, title, link, description, author_email=None, author_name=None, author_link=None, pubdate=None, comments=None, unique_id=None, enclosure=None, categories=(), item_copyright=None, ttl=None, **kwargs):

    to_unicode = (lambda s: force_text(s, strings_only=True))
    if categories:
        categories = [to_unicode(c) for c in categories]
    if (ttl is not None):
        ttl = force_text(ttl)
    item = {u'title': to_unicode(title), u'link': iri_to_uri(link), u'description': to_unicode(description), u'author_email': to_unicode(author_email), u'author_name': to_unicode(author_name), u'author_link': iri_to_uri(author_link), u'pubdate': pubdate, u'comments': to_unicode(comments), u'unique_id': to_unicode(unique_id), u'enclosure': enclosure, u'categories': (categories or ()), u'item_copyright': to_unicode(item_copyright), u'ttl': ttl}
    item.update(kwargs)
    self.items.append(item)
