I did have a look at this last night, but ran out of time.
The problem I saw was that the import were not finding the modules. The times I have done something like this, I needed to prefix the included module name with the plugins details. An example I have is:
Code:
import calibre_plugins.goodreads_sync.httplib2 as httplib2
This is inside another module in the package.
I made this change for a few of the statements, but, didn't have time to do all.
Unfortunately, that would mean going through all those modules and changing the import statements. There might be a better way with a load library statement or using relative paths, but, I haven't experimented.