Rewrite out-of-core ckernels to pykernels