I wrote a simple script called py4runbook.py to generate python scripts for Microsoft system center orchestrator runbooks. Thanks to the module pyHyperV, it makes my work much easier 🙂
The script can be downloaded from my github repo. It looks like following when it runs. The script needs Python version 3. The generated python scripts works with Python 2.X.