import socket import binascii import struct import time def opcodify(hexstr): return struct.pack('