PyBytes needs python 2.6 but PyCapsule needs python 2.7, so the
existing code breaks with python 2.6 due to a misplaced #endif

--- python/libxml_wrap.h
+++ python/libxml_wrap.h
@@ -34,13 +34,13 @@
 #define PyBytes_AsString PyString_AsString
 #define PyBytes_AS_STRING PyString_AS_STRING
 #define PyBytes_GET_SIZE PyString_GET_SIZE
+#endif
 
 #define PyCapsule_New PyCObject_FromVoidPtrAndDesc
 #define PyCapsule_CheckExact PyCObject_Check
 #define PyCapsule_GetPointer(o, n) PyCObject_GetDesc((o))
 
 #endif
-#endif
 
 /**
  * ATTRIBUTE_UNUSED:
