Fixed Pylint-indicated issues with code.