Run a python script from a Yii site

How do we set it up using c panel, Python is enableed.

Use shell_exec from PHP