fixing some pylint errors