Namespaces are not supported if they are within a <html> tag though - correct? Sorry to keep setting this as 'opened' but so far all you have told us is that the function failed because "the html uses namespaces"... But then you say namespaces are supported.
So far, everytime I have tried using namespaces in the HTML with PYQuery, it has failed. This sounds like a bug to me, no?