MAINT: Some pyflakes-driven cleanup in linalg and sparse