Use python sets

Instead of

    for (loop):
        if (condition):
            continue

simply use Python sets:

    for attr in set(attrs.keys()).intersection(set(self.attr_val_is_uri)):
        ...