Tutorial for writing Python C extension modules