Fixed pyflakes warnings generated in topo/misc/lancext.py