[plugin] adjust syntax to match PEP8 + fixed some typos