fixed a segv in the python messaging code on 64 bit systems