made chat.py 32bit and 64bit aware