better support for querying plugins
pep8 tidyup and example of plugin querying