Python plugin: Improve error reporting during plugin init