def buildconfig(params):
    """Given a list of the parameters of a config file - it will build the 
    dictionary used by ConfigObj to validate a config file.
    If the parameter passed to it ends in '[]' it will be made
    a list type."""
    outparams={} 
    for param in params:
        if param[-2:] !='[]':
            outparams[param]=''
        else:
            outparams[param[:-2]]="[]"
    return(outparams)
Given a list of the parameters of a config file - it will build the 
    dictionary used by ConfigObj to validate a config file.
    If the parameter passed to it ends in '[]' it will be made
    a list type.
recipes/Python/259175_ConfigObj__Lightweight_Config_File/recipe-259175.py