Fix a few pyflakes warnings.