The module "struct" provides facility to pack python objects as contiguous chunk of bytes or dissemble a chunk of bytes to python structures.
The pack function takes a format string and one or more arguments, and returns a binary string. This looks very much like you are formatting a stri...