change a small bit in the way valididy error messages get initialized

* parserInternals.c: change a small bit in the way valididy
  error messages get initialized
* python/TODO python/libxml.c python/libxml2-python-api.xml
  python/libxml2class.txt python/libxml_wrap.h python/types.c:
  added some memory debugging to track leaks at the libxml2 level
* python/tests/*.py: changed all tests to check for leaks,
  there is just one left in XPath extension registrations.
daniel
diff --git a/python/TODO b/python/TODO
index d1799fb..24f94d1 100644
--- a/python/TODO
+++ b/python/TODO
@@ -6,17 +6,11 @@
 -------------
 
 - SAX interfaces
-- memory debug interfaces
 - enums -> libxml.py
 - access to XPath variables
-- parserCtxt exposure:
-  - entry points
-  - wrappers
-  - decent interface for setting/getting behaviour
 - xmlBuffer exposure
 - xpathContext, being able to set/get info and clean it up
 - add regression tests
-   - check memory
    - build tree
    - saving
    - SAX flow
@@ -33,6 +27,7 @@
    - tests/Makefile.am: export the Python class path
    - xpath queries
    - xpath extension
+   - check memory
 - extensions based on a python.xml description of the new specific
   interfaces
    file libxml2-python-api.xml , first entry is xmlRegisterXPathFunction
@@ -43,5 +38,9 @@
 - handling of node.content
 - access to xmlParserCtxt and push mode
    - needed for SAX too
+   - entry points
+   - wrappers
+   - decent interface for setting/getting behaviour
+- memory debug interfaces
 
 Daniel Veillard