It's just creating a format string for the struct
.pack() call. The way he knew what the format string is should be documented somewhere by Apple.
Join the #python-forum IRC channel on irc.freenode.net!
Please do not PM members regarding questions which are meant to be discussed publicly. The point of the forum is so that others can benefit from it. We don't want to help you over PMs or emails.