First guess is that you are passing a Python function to something that expects a C function. Try looking at gencb.py in DynWin. -- Want to play tabletop RPGs over the internet? Check out Koboldsoft RPZen: http://www.koboldsoft.com