packetmatch.py bug fix