def _del_nulls(kwargs):
    """Delete keys that are ``None`` or ``'null'`` for kwargs.

    """
    null_keys = [k for (k, v) in kwargs.items() if v is None or v is 'null']
    for k in null_keys:
        del(kwargs[k])
    return kwargs