Return the size of the struct (and hence of the bytes object produced by pack(format, ...)) corresponding to the format string format.
struct.calcsize(format)