BUG: Fix for issue with PythonParser::_check_thousands. (GH4596)