As in the C++ version the argument wantIdModifications is a list of
booleans. The count argument is omitted in the Python version as
this can be automatically determined from the Python list.
Similarly, the callback function func just receives a list
componentIds with
integers and the client data as input. The size of the list is omitted
as it is again just len(componentIds).