python3 compatibility

At least, I think so.

Also fixed the broken unittests for plugin loading where the plugin
isn't satisfying the abstract base class.