'Dispatch a response from the server for handling.
Command X is dispatched to handle_X() if it exists.  If not, it is
dispatched to the default handler.
@type command: L{bytes}
@param command: The command.
@type default: callable that takes L{bytes} or
L{None}
@param default: The default handler.
@type args: L{tuple} or L{None}
@param args: Arguments to the handler function.'

def _dispatch(self, command, default, *args):

    try:
        method = getattr(self, ('handle_' + command), default)
        if (method is not None):
            method(*args)
    except:
        log.err()
