virttest: Make nwfilter_xml.py compatible before python 2.6

except..as syntax not support before python 2.6