I tried this (writing a module) a while back, and honestly I have to say that Python's C interface is horrifying. It's a real messy system, and it's not that surprising since it's a very complex program behind the simple language. Anyway, I might give this a shot again later, although there might be some handy libraries out there to simplify the process.
I'll take a look, I suppose.
I'll take a look, I suppose.