Corrected some pyflakes errors.