code: def _iter_list_for_dicts(self, check_list):
          
  
          list_copy = copy.deepcopy(check_list)
          for index, elem in enumerate(check_list):
              if isinstance(elem, dict):
                  list_copy[index] = self._check_for_python_keywords(elem)
              elif isinstance(elem, list):
                  list_copy[index] = self._iter_list_for_dicts(elem)
              else:
                  list_copy[index] = elem
          return list_copy
docs: Iterate over list to find dicts and check for python keywords.