Fixed pyflakes warnings.