code: def getnamedargs(*args, **kwargs):
      
      adict = {}
      for arg in args:
          if isinstance(arg, dict):
              adict.update(arg)
      adict.update(kwargs)
      return adict
docs: allows you to pass a dict and named args
      so you can pass ({'a':5, 'b':3}, c=8) and get
      dict(a=5, b=3, c=8)