How to know if two sets have common values in Python?