private static bool RunPythonFilter(TreeNode node, Func<object, bool> python_filter) { try { return python_filter(node.Tag); } catch (Exception ex) { System.Diagnostics.Debug.WriteLine(ex.Message); return false; } }