Fix warnings from pylint