Python: Set Operations in details