Use GetItemCount() on ListCtrls instead of directly accessing ItemCount.
[tinc] / gui /
drwxr-xr-x   ..
-rw-r--r-- 991 README.gui
-rwxr-xr-x 5039 Tinc.py
-rwxr-xr-x 9893 tinc-gui