modified MACQuery.py and TXTtoXML.py