There's a Python4mIRC dll at http://www.mircscripts.org