Rearranged loop for horizontal to remove one level. Pep 8 fix.
Simplified label handling in both py and pt. Added use of get_children for items shown in horizontal display so that permissions are honored.