Using Slicer Modules/Functions in Python?

Is it possible for us to grab the module/function used to discretize meshes in a python script? If so, which module would I use? Is there any documentation on the function?