Python snippet for (he)xchat