'Returns the default country for the active gis_config
@param: key_type: whether to return an id or code'

def get_default_country(self, key_type='id'):

    config = GIS.get_config()
    if config.default_location_id:
        return self.get_parent_country(config.default_location_id, key_type=key_type)
    return None
