Update indexer.py

Fix for Issue #9 " hierarchical order of selection has to be other way round "
selection of one child imply selection of its parents (bottom up) and checks if parent is already selected.
Merge pull request #10 from i-zone/patch-1

Update indexer.py