Java Set Intersection Python