Fix Bug: iteration on bool getSubLinks.py