def simple_com(text, user, args):
    params = []
    if args:
        for key in args:
            if (key != 'n'):
                params.append(args[key])
    try:
        response = text.format(*params, user=user)
    except IndexError:
        response = (user + u', invalid number of arguments.')
    return response
def simple_com(text, user, args):
    params = []
    if args:
        for key in args:
            if (key != 'n'):
                params.append(args[key])
    try:
        response = text.format(*params, user=user)
    except IndexError:
        response = (user + u', invalid number of arguments.')
    return response