packet.py - forgot to encode data