made chat python2 compatible
python2 compatibility
python2 compatibility