Update sniffer.py

working version