Using ./sage -fiximports from #34945.
Also remove trailing whitespace in the affected files.
Part of Meta-ticket #34201
CC: @alexchandler100 @tscrim
Component: refactoring
Author: Alex Chandler, Matthias Koeppe
Branch/Commit: u/mkoeppe/sage__misc_monoids_sets___replace_imports_from_sage___all_for_namespace_packages @ a8a3d6e
Reviewer: Travis Scrimshaw
Issue created by migration from https://trac.sagemath.org/ticket/34956