docs: def normalize_string_keys(old):
      """Given a dictionary, make sure keys are unicode strings, not bytes."""
      new = {}
      for key, value in old.items():
          if isinstance(key, bytes_):
              new[key.decode('utf8')] = value
          else:
              new[key] = value
      return new