Make plan related cython code into a separate extension