def read_cfg_bool(cfgp, section, key, default):
    """
    Read bool from a config file
    Args:
        cfgp: Config parser
        section: [section] of the config file
        key: Key to be read
        default: Value if couldn't be read

    Returns: resulting bool

    """
    if cfgp.has_option(section, key):
        return cfgp.get(section, key) in ['True', 'true']
    else:
        return default