I want to run a cpu intensive program in Python across multiple cores and am trying to figure out how to write C extensions to do this.  Are there any code samples or tutorials on this?
multiprocessing is easy. if thats not fast enough, your question is complicated.
How to use C extensions in python to get around GIL