handle Python name errors such as undefined variable names
test for python interpreter nameerror