LangManager: Move Python errors check in a different function, better variable names