The backup code needed to be modified so that it works with Ocarina 4.1. This involved writing a function to walk library ids, and using the lib_get_attr function from the collection.