title: Input YAML config values into keyword arguments for Python
body: <p>I'd like to have a YAML config file for certain analysis settings for my Python script. The YAML file looks something like this:</p>
  
  <pre><code>settings:
    param1: 1
    param2: two
    ...
  </code></pre>
  
  <p>In my Python script, I want to pass these values as keyword arguments to a function. Loading in the YAML file gives me a dictionary. The function only has keyword arguments and I don't know beforehand which keyword arguments the config file will have. The function looks something like this:</p>
  
  <pre><code>def process(param1=None, param2=None, param3=None):
      ...
  </code></pre>
  
  <p>Note that the name of the YAML settings are the same as the keyword argument names. The function has several possible keyword arguments, and the config file may only have one or two. Obviously, I want to assign the values to the right keyword arguments. </p>
  
  <p>How can I assign YAML values (and/or a dict) to their keyword argument assignments?</p>