Cleanup.
[python] Simplify the call to set operations.