code: def command_packet(cmd):
      
      return message('Command',
                     Container(string_length=len(cmd),
                               string=bytes(cmd, ENCODING)),
                     len(cmd) + 2)
docs: Build a command message.