The windows clipboard allows HTML content to be processed. A specification about the specific format can be found here.
A python support for the windows clipboard is found in this site package.
A recipe for using the clipboard, written by Phillip Piper, can be found from this web page. I gave a simplified version of putting something into the clipboard at here.