def inline_css(html_message, encoding='<STR_LIT>'):
document = etree.HTML(html_message)<EOL>converter = Conversion()<EOL>converter.perform(document, html_message, '<STR_LIT>', encoding=encoding)<EOL>return converter.convertedHTML<EOL>
Inlines all CSS in an HTML string

Given an HTML document with CSS declared in the HEAD, inlines it into the
applicable elements. Used primarily in the preparation of styled emails.

Arguments:
    html_message -- a string of HTML, including CSS