Since I use both of these archives together, I wrote this code to iron out the differences between them:
https://github.com/cocrawler/cdx_toolkit