cython main function wrapper
directory arrange