The fix I posted last month for http://trac.turbogears.org/turbogears/ticket/29 is slightly ugly (imports sprinkled in my fix and not at the start of the module) so that you can just paste it into pull.py class ExpatParser at the end of init block as one chunk.
However, it will not deal with special Portugese characters unless they are also XHTML entities! Post something, I'll try to help you.

