use new python object style to send packet