CLN: Remove unused imports in pyx files
cc @jbrockmendel 

Removed unused imports flagged by PyCharm. Compiled fine locally, waiting for CI to pass.

lgtm. merge on green. @mroeschke  @jbrockmendel Feel free to push directly to this PR. Closing in favor of #21816