improve cython dynamic import