This script exists in Pipeline 1. It's based on some Python script to convert the RTF to XML, and then there is an XSLT to convert that to DTBook.