Hoopsnake interact with ghpython

Deal All,
I am searching for ghpython scripts to “reset” and start “loop” the Hoopsnake component.
Any suggestion is much appreciated!