Fix arguments for function

- Requesting the arguments from json/yaml file returns a list of 
  dicts (expected behaviour). Convert this list of dicts to one
  large dict so it can be used as arguments to the function.