Improved beautiful soup support and some PEP8 pedantry

Support different versions of BeautifulSoup and also make the
changed files PEP8 compliant.

Change-Id: I6a72ab568ad27a50397880a8cb433a530e97ad4a
Support rendering a single object through show_object

Change-Id: Id446e29cc2a7cb67e8e8f7dd0caaff9753ce705e