Partially complete the plugin.py