remove_data_trigger from C++ and python