Example of using RICE to write a C extension