Work around buggy HTML Parser in Python < 2.7.3 (Closes #662)