Hello,
While writing a bot, I had to discard redirected pages from the XML dump. In order to be able to do it early, I modified xmlreader.py to parse the <redirect /> tag and add it to XmlEntry. I'm attaching the patch, which is not extensively tested.
I haven't updated the regex_parse method since it looks outdated anyway (it tries to create an XmlEntry with different arguments than usual).
Best regards,