def configget(config, section, var, default):
    """
    gets parameter from config file and returns a default value
    if the parameter is not found
    """
    try:
        ret = config.get(section, var)
    except:
        print('returning default (' + default + ') for ' + section + ':' + var)
        ret = default
    return ret
