Ran 2to3 and a few manual fixes.

I use Arch Linux in which Hexchat is linked against python3, so I ran a simple 2to3 conversion and fixed up a few obvious things manually.

This is probably of no practical use for you at this moment, but you might want to keep it around for future reference. (Or if someone with the same issue complains) :D