#!/usr/bin/env python3 import sys import struct import binascii # encode vendor name, add length byte and padding to multiple of 4 def encode_vendor(vname): vbin = vname.encode() vbin = struct.pack('