Can you extract the values `excludes` and `mapping` into constants at the top of the file in the format `CONF_MAPPING = 'mapping'`.  I also think that the names mapping and excludes do not properly represent the meaning of the configuration option. Something like `source_name` and `source_ignore` would for example be more fitting. 