NejuChat is a framework for writing xchat scripts in python. It abstracts away the cumbersome xchat interface, and provides some goodies. The current source supports loading modules, (unload might take patches to xchat), and comes with some nifty module