plugin.py: minor import refactoring
minor docstrings