  
  def update_exc(base_exceptions, *addition_dicts):
      exc = dict(base_exceptions)
      for additions in addition_dicts:
          for orth, token_attrs in additions.items():
              if not all(isinstance(attr[ORTH], unicode_) for attr in token_attrs):
                  msg = "Invalid value for ORTH in exception: key='%s', orths='%s'"
                  raise ValueError(msg % (orth, token_attrs))
 
</s> remove     if type(data) == dict:
 </s> add     if isinstance(data, dict): </s> remove def is_package(origin):
    """
    Check if string maps to a package installed via pip.
 </s> add def is_package(name):
    """Check if string maps to a package installed via pip.

    Args:
        name (unicode): Name of package.
    Returns:
        bool: True if installed package, False if not.
 </s> remove     Print data in table format. Can either take a list of tuples or a
    dictionary, which will be converted to a list of tuples.
    """
    if type(data) == dict:
 </s> add     if isinstance(data, dict):
    """Update and validate tokenizer exceptions. Will overwrite exceptions.

    Args:
        base_exceptions (dict): Base exceptions.
        *addition_dicts (dict): Exceptions to add to the base dict, in order.
    Returns:
        dict: Combined tokenizer exceptions.
    """
  
  def update_exc(base_exceptions, *addition_dicts):
    """Update and validate tokenizer exceptions. Will overwrite exceptions.

    Args:
        base_exceptions (dict): Base exceptions.
        *addition_dicts (dict): Exceptions to add to the base dict, in order.
    Returns:
        dict: Combined tokenizer exceptions.
    """
      exc = dict(base_exceptions)
      for additions in addition_dicts:
          for orth, token_attrs in additions.items():
              if not all(isinstance(attr[ORTH], unicode_) for attr in token_attrs):
                  msg = "Invalid value for ORTH in exception: key='%s', orths='%s'"
                  raise ValueError(msg % (orth, token_attrs))
keep add keep keep keep keep keep keep
 Add docstrings, error messages and fix consistency 
spacy/util.py