pylint cleanup for message and monitor