fixing pylint suggestions