Psyco is a great idea. I just tried it out on _unmodified code_ that parses large logfiles and it doubled the performance. A nice convenince compared to things like swig, is that you don't even need to have a C compiler around. Just point it to the functions you want optimized. import psyco def fred(): print 'stuff here' psyco.bind(fred) fred() john