pylint and fixing errors