docs: def lower_dict(d):
      """Lower cases string keys in given dict."""
  
      _d = {}
  
      for k, v in d.items():
          try:
              _d[k.lower()] = v
          except AttributeError:
              _d[k] = v
  
      return _d