def convert_params(params, prefix):
    """Change prefix of a python dictionnary
    (necessary in some Challonge API methods)
    """
    new_params = {}
    for key in params:
        new_key = prefix + '[' + key + ']'
        new_params[new_key] = params[key]
    return new_params
