Python APIs for Selections