ICP based alignment in python

How can I do ICP based alignments (as we do in software) of the geometries during the grooming process in python code using shapeworks library.

A good example of all of the Python APIs are the tests, for example: