Update hexchat.py

fix for python 3