Change expression_kernel function to use PyOP2 ast