Pack a series of arguments into a value SSDB command

def pack_command(self, *args):
        """
        Pack a series of arguments into a value SSDB command
        """
        # the client might have included 1 or more literal arguments in
        # the command name, e.g., 'CONFIG GET'. The SSDB server expects
        # these arguments to be sent separately, so split the first
        # argument manually. All of these arguements get wrapped
        # in the Token class to prevent them from being encoded.
        command = args[0]
        if ' ' in command:
            args = tuple([Token(s) for s in command.split(' ')]) + args[1:]
        else:
            args = (Token(command),) + args[1:]
        args_output = SYM_EMPTY.join([
            SYM_EMPTY.join((
                b(str(len(k))),
                SYM_LF,
                k,
                SYM_LF
            )) for k in imap(self.encode, args)
        ])
        output = "%s%s" % (args_output,SYM_LF)
        return output