fixing some pylint issues