def read_config_params(item):
    """
    Read ints and booleans from config files
    Use for user_params and flag_options only

    Parameters
    ----------
    item : str
        config dictionary item as a string

    Return
    ------
    config dictionary item as an int, bool or str

    """
    try:
        return int(item)
    except:
        if item == 'True':
            return True
        if item == 'False':
            return False
        else:
            return item