remote some unused variables declarations in except, so we get less warnings from pyflakes