A port of http://gafferongames.com/networking-for-game-programmers/sending-and-receiving-packets/ into python.