modified MACQuery.py and add main.py