Bugfix for py3
Finish simple test of ckernel_deferred_from_pyfunc