Pylint cleanup and some function parameter fixes.