This could perhaps be better done using am `Unpickler`, with a custom `find_global` that grabs the right class in this case.