How to test if the element from a set is in other in Python?