Changed code to use hexchat and python 3.4