def clean_kwargs(kwargs, keys=None):
    """Removes each key from kwargs dict if found

    Parameters
    ----------
    kwargs : dict
        * dict of keyword args
    keys : list of str, optional
        * default: ['obj', 'pytan_help', 'objtype']
        * list of strs of keys to remove from kwargs

    Returns
    -------
    clean_kwargs : dict
        * the new dict of kwargs with keys removed
    """
    if keys is None:
        keys = ['obj', 'pytan_help', 'objtype']

    clean_kwargs = dict(kwargs)
    [clean_kwargs.pop(x) for x in keys if x in kwargs]
    return clean_kwargs