hexchat: optional python3 support

Closes #29150.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>