Guidance on Creating a Simplified Python-Based Version of 3D Slicer with Custom Modules

You should probably start from this thread and checkout the links provided: