MAINT: Fixes for problems in numpy/lib revealed by pyflakes.

Some of those problems look like potential coding errors. In those
cases a Fixme comment was made and the offending code, usually an
unused variable, was commented out.
STY: Make files in numpy/lib PEP8 compliant.

The rules enforced are the same as those used for scipy.