update object selection in python