Fixed problems with examples, templates and plugins reported by pylint.

Leo build: 20140919153325