Minor Code Correction

Python syntax bugs + logic for SA/A/Data problem. Removed main from
packet.py