def convert_content(req, mimetype, content, key):
    """Convert the given content from mimetype to the output MIME type
        represented by key. Returns a tuple in the form (content,
        output_mime_type) or None if conversion is not possible.

        content must be a `str` instance or an iterable instance which
        iterates `str` instances."""
