<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def config(filename):
 """ Construct `Config` object and return a list. :parse filename: A string containing the path to YAML file. :return: list """

    Config = collections.namedtuple('Config', [
        'git',
        'lock_file',
        'version',
        'name',
        'src',
        'dst',
        'files',
        'post_commands',
    ])

    return [Config(**d) for d in _get_config_generator(filename)]