Clean up pylint warnings in TemporalMemory

Fixes https://github.com/numenta/nupic/issues/1405.