Fixed some problems reported by pylint.
One was serious: there is no onKey method.  I guessed that it should be the complete method.  No guarantees.

Leo build: 20140921070226