Fix undefined name found by pyflakes.