hexchat: fix Python plugin support

Closes #26803.