Add function which creates a ckernel_deferred from a python instantiate fn