def get_config_str(config, section, option, default_value=None):
    """tries to retrieve a str value from config or returns the default"""
    try:
        return config.get(section, option)
    except:
        return default_value
