packet.py: added __eq__ and removed numpy dependency