BLD: fix odd usage of cython imports, xref (GH8602)

easy enough, that import should not have been there. we don't import from other pyx files unless its explicity exported (which is in very few cases).