Use BeautifulSoup to prettify output of WWW pages before writing

Change-Id: I0a554091f225dff6b312d253a1ff2c1aa2cc8ac9
Merge "Use BeautifulSoup to prettify output of WWW pages before writing"