Fixes for pep8 and pylint failures in generated plugin