fixing some pylint issues.

fixing some pylint issues