def notwanted(obj, notwant):
    """ determine whether this object in not wanted in a query. """
    if not notwant:
        return False
    for key in notwant:
        try:
            value = obj[key]
            return True
        except:
            pass
    return False
