fix pylint: R0914, W0311