Python snippet for (he)xchat

@Gwildor thanks for help