Added the MergeSubsets function to the python wrapper