badapp.py: Adds HEAD request handler for Py 3.4.
document.py: Uses HTML hack only for HTML parsers.