internal void RemoveAllVariables()
        {
            var variables = m_py.GetVariableNames().ToArray();

            for (int i = 0; i < variables.Length; i++)
            {
                var variable = variables[i];

                if (string.IsNullOrWhiteSpace(variable))
                {
                    continue;
                }
                if (variable.StartsWith("_"))
                {
                    continue;
                }
                if (variable == DOCUMENT_NAME || variable == PARENT_ENVIRONMENT_NAME)
                {
                    continue;
                }

                m_py.RemoveVariable(variables[i]);
            }
        }