Python script to translate Factiva .rtf output into a structured XML document