try/except func for both 2.x/3.x support: HTML parser was renamed in python 3.x