better debugging, print line number and python source for runtime errors, by using try/catch around each expression when not in javascript mode.