lang, fixed a python exec error case

If we have an error in the startup sequence a
variable was used non initialized.