Add optional memory usage logging.

Enabled when pympler is installed and the log level is set to DEBUG.
Pylint cleanup