<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def extend_config(config, config_items):
 """ We are handling config value setting like this for a cleaner api. Users just need to pass in a named param to this source and we can dynamically generate a config object for it. """

    for key, val in list(config_items.items()):
        if hasattr(config, key):
            setattr(config, key, val)

    return config