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 branch 'feature/6455_expose_det_group_sep' into develop