fixing some code style issues found via pylint