Utilizing Rhino Common SDK with python

Also you can use the source code of the rhinoscriptsyntax module for inspiration