Pylint fixes

Pylint fixes, refs #14554
Refs #14341 daviz; cleanup code
Refs #14341 daviz; cleanup code in events.py
Merged with collective