Call the command-specific function, depending on the command.

def dispatch(argdict):
    '''Call the command-specific function, depending on the command.'''
    cmd = argdict['command']
    ftc = getattr(THIS_MODULE, 'do_'+cmd)
    ftc(argdict)