Port of pytari to C@