import order fixes for future automated checking

This PR makes us mostly clean for flake8-import-order (refs #819). Final fixes need to be done in the generate/verify scripts for our bespoke vectors, but that should be a separate PR so they can be re-verified.