Expose the function to Python re #6455

Still need to write python script to test this.

Signed-off-by: Karl Palmen <karl.palmen@stfc.ac.uk>
Merge remote-tracking branch 'origin/feature/6455_expose_det_group_sep'