Corrected small errors detected by pyflakes.